<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>4</title>
</head>
<body>
<script>
    //嵌套for循环9*9乘法表
    for (let i = 1; i <= 9; i++) {
        for (let j = 1; j <= i; j++) {
            console.log(j+"x"+i+"="+(j*i)+" ");
        }
         console.log("\n");
    }
</script>
</body>
</html>